package com.pkuse.bjousystem.entity.student;

import com.pkuse.bjousystem.AuthEntity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "xsb")
public class Student implements AuthEntity {
    //学号
    @Id
    private String xh;
    //姓名
    private String xm;
    //年度
    private String nd;
    //学期代码
    private String xqdm;
    //专业代码
    private String zydm;

    private String gzh;

    private String zyccdm;

    private String bdm;

    private String xjztdm;
    
    private String xxdm;

    private String xslxdm;

    private String zygznd;

    private String zygzxq;

	public String getName() {
        return xm;
    }

    public String getId() {
        return xh;
    }

    @Override
    public String toString() {
        return "学号:" + xh + ";姓名:" + xm;
    }

    @Override
    public String getAuthUsername() {
        return xh;
    }

    @Override
    public String getAuthPassword() {
        return xm;
    }

    @Override
    public AuthType getAuthType() {
        return AuthType.Student;
    }
}
